home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
gcc
/
ixemlsrc.lha
/
ixemul
/
library
/
utmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-13
|
1KB
|
44 lines
/*
* This file is part of ixemul.library for the Amiga.
* Copyright (C) 1996 by Jeff Shepherd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id:$
*
* $Log:$
*
*/
#define KERNEL
#include "ixemul.h"
#include <stdio.h>
#include <utmp.h>
static FILE *_utmp_fp;
static struct utmp _utmp;
static int _utmp_stayopen;
static int utmpscan(), start_utmp();
static int
start_utmp(void) {
if (_utmp_fp) {
syscall(SYS_rewind,_utmp_fp);
return(1);
}
return((_utmp_fp = fopen(_PATH_UTMP, "r")) ? 1 : 0);
}